package OoDay02;

public class ExtendsTest {
    public static void main(String[] args) {
        Student zs=new Student();
        zs.name="张三";
        zs.age=17;
        zs.address="湖北";
        zs.className="jsd2405";
        zs.stuId="001";
        zs.eat();
        zs.study();
        zs.sayHi();
        zs.sleep();

        Student ls=new Student("李四",20,"江西","jsd2405","002");
        ls.eat();
        ls.sleep();
        ls.study();
        ls.sayHi();

        Teacher ww=new Teacher("王五",35,"武汉",6000);
        ww.sayHi();
        ww.eat();
        ww.teach();

        Doctor zp=new Doctor("张鹏",40,"上海","主任医师");
        zp.sleep();
        zp.sayHi();
        zp.cut();

        Person p=new Person();
        p.name="赵鹏";
        p.age=50;
        p.address="苏州";
        p.sayHi();


    }
}
